-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trie: remove isTruthy and isFalsy #2249
Conversation
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for the approval! I just made a minor update here: 089295e based on the discussion here: #2233 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -657,7 +657,7 @@ export class Trie { | |||
} as PutBatch | |||
}) | |||
|
|||
if (this.root() === this.EMPTY_TRIE_ROOT && isTruthy(opStack[0])) { | |||
if (this.root() === this.EMPTY_TRIE_ROOT && opStack[0] !== undefined && opStack[0] !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but totally love all this (have taken a random line to comment 😋)!!!
This is structurally such an improvement for the whole library suite! 🎉
Extracts the trie package from #2233